package com.grass.appointment.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;
import com.androidx.p013lv.base.view.StatusControlLayout;
import com.grass.appointment.C2693BR;
import com.grass.appointment.C2694R;
import com.grass.appointment.fragment.DynamicAppointmentFragment;
import com.grass.appointment.generated.callback.OnClickListener;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

/* renamed from: com.grass.appointment.databinding.a */
public class FragmentAppointmentDynamicBindingImpl extends FragmentAppointmentDynamicBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback17;
    private long mDirtyFlags;
    private final RelativeLayout mboundView0;
    private final LinearLayout mboundView1;
    private final ImageView mboundView2;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C2694R.C2697id.refresh, 3);
        sViewsWithIds.put(C2694R.C2697id.recycler, 4);
        sViewsWithIds.put(C2694R.C2697id.status_layout, 5);
    }

    public FragmentAppointmentDynamicBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 6, sIncludes, sViewsWithIds));
    }

    private FragmentAppointmentDynamicBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (RecyclerView) objArr[4], (SmartRefreshLayout) objArr[3], (StatusControlLayout) objArr[5]);
        this.mDirtyFlags = -1;
        RelativeLayout relativeLayout = (RelativeLayout) objArr[0];
        this.mboundView0 = relativeLayout;
        relativeLayout.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[1];
        this.mboundView1 = linearLayout;
        linearLayout.setTag(null);
        ImageView imageView = (ImageView) objArr[2];
        this.mboundView2 = imageView;
        imageView.setTag(null);
        setRootTag(view);
        this.mCallback17 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 4;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C2693BR.status == i) {
            setStatus((Integer) obj);
        } else if (C2693BR.click != i) {
            return false;
        } else {
            setClick((DynamicAppointmentFragment.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.appointment.databinding.FragmentAppointmentDynamicBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C2693BR.status);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.FragmentAppointmentDynamicBinding
    public void setClick(DynamicAppointmentFragment.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C2693BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        DynamicAppointmentFragment.OnClick onClick = this.mClick;
        long j2 = j & 5;
        int i = 0;
        if (j2 != 0) {
            boolean z = true;
            if (ViewDataBinding.safeUnbox(num) != 1) {
                z = false;
            }
            if (j2 != 0) {
                j |= z ? 16 : 8;
            }
            if (!z) {
                i = 8;
            }
        }
        if ((5 & j) != 0) {
            this.mboundView1.setVisibility(i);
        }
        if ((j & 4) != 0) {
            this.mboundView2.setOnClickListener(this.mCallback17);
        }
    }

    @Override // com.grass.appointment.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        DynamicAppointmentFragment.OnClick onClick = this.mClick;
        if (onClick != null) {
            onClick.goSendDynamic();
        }
    }
}
